package com.siriframe.security.entity.po;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class User implements Serializable{
    //用户id
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId
    private Long id;

    //用户名 -- 邮箱
    private String username;

    //用户密码
    private String password;

    //身份证
    private String identityCard;

    //用户性别
    private String gender;

    //地理位置信息
    private String location;

    //用户头像
    private String userImage;

    //用户电话
    private String phoneNumber;

    //用户创建时间
    private String createTime;

    //用户修改时间
    private String updateTime;

    //逻辑删除
    @TableLogic
    private int isDelete;
}

